import request from '@/utils/request'
import qs from 'qs';
export function GetListExperimentTemplateRecord(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/ElnCommon/GetRecordList',
    method: 'get',
    params: data,
    paramsSerializer: (params) => qs.stringify(params, { indices: false }),
  })
}
export function GetListByResultIn(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/ElnCommon/GetListByResultIn',
    method: 'get',
    params: data,
    paramsSerializer: (params) => qs.stringify(params, { indices: false }),
  })
}

export function getSingleList(data) {
  return request({
    url: "api/v1/ExperimentTemplateRecord/Get",
    method: "get",
    params: data,
  });
}

export function updateReportSort(data) {
  return request({
    url: "api/v1/ExperimentTemplateRecord/updateReportSort",
    method: "post",
    data,
  });
}
